<template>
  <van-nav-bar
    style="z-index: 999"
    :title="title"
    :fixed="true"
    left-arrow
    @click-left="onBack"
  />
</template>

<script>
import { NavBar } from "vant";
export default {
  name: "NavBar",
  props: ["title"],
  components: {
    [NavBar.name]: NavBar,
  },
  // 定义属性
  data() {
    return {};
  },
  // 方法集合
  methods: {},
};
</script>

<style lang="less">
@import "vant/lib/nav-bar/index.less";
@import "@/assets/css/common.less";
</style>
